

package com.hazelcast.wan.impl;

import java.util.UUID;

/**
 * A user-triggered WAN anti-entropy event. The concrete event may be of
 * different types, e.g. consistency check or synchronization event.
 */
public interface WanAntiEntropyEvent {

    String getWanReplicationName();

    String getWanPublisherId();

    /**
     * Returns the source cluster-wide unique ID for this anti-entropy event.
     *
     * @return the unique ID for this event
     */
    UUID getUuid();

    /**
     * Returns the distributed structure (object) name on which this event
     * occurred. It may be {@code null} if the event is for all structures
     * (objects) for a certain distributed service.
     *
     * @return the object name on which this event occurred
     */
    String getObjectName();
}
